package enums.enumeration02;

public class Enum {
    public static void main(String[] args) {
        
    }
}

class Season {
    private String name;
    private String desc;

    //定义四个对象
    public static Season SPRING = new Season("春天", "温暖");
    public static Season SUMMER = new Season("夏天", "炎热");
    public static Season AUTUMN = new Season("秋天", "凉爽");
    public static Season WINTER = new Season("冬天", "寒冷");

    public String getName() {
       return name;
    }

    // 去掉set方法
    // public void setName(String name) {
    //    this.name = name;
    // }
    
    public String getDesc() {
       return desc;
    }

    // 去掉set方法
    // public void setDesc(String desc) {
    //    this.desc = desc;
    // }
    
    //构造器私有化
    private Season(String name, String desc) {
       this.name = name;
       this.desc = desc;
    }

    
}
